package com.ruoyi.web.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 调拨单基本信息对象 mes_allot_info
 * 
 * @author wxt
 * @date 2024-01-18
 */
public class MesAllotInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 状态 */
    @Excel(name = "状态", combo = {"未提交", "已提交"}, readConverterExp = "1=未提交,2=已提交")
    private Integer status;

    /** 调拨单编号 */
    @Excel(name = "调拨单编号")
    private String allotNum;

    /** 调拨日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "调拨日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date allotDate;

    /** 调拨单位 */

    private Long allotUnitid;

    @Excel(name = "调拨单位")
    private String unitname;


    /** 调拨备注 */
    @Excel(name = "调拨备注")
    private String allotRemark;

    /** 调拨单明细信息 */
    private List<MesAllotDetail> mesAllotDetailList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setAllotNum(String allotNum) 
    {
        this.allotNum = allotNum;
    }

    public String getAllotNum() 
    {
        return allotNum;
    }
    public void setAllotDate(Date allotDate) 
    {
        this.allotDate = allotDate;
    }

    public Date getAllotDate() 
    {
        return allotDate;
    }
    public void setAllotUnitid(Long allotUnitid)
    {
        this.allotUnitid = allotUnitid;
    }

    public Long getAllotUnitid()
    {
        return allotUnitid;
    }

    public void setUnitname(String unitname)
    {
        this.unitname = unitname;
    }

    public String getUnitname()
    {
        return unitname;
    }

    public void setAllotRemark(String allotRemark) 
    {
        this.allotRemark = allotRemark;
    }

    public String getAllotRemark() 
    {
        return allotRemark;
    }

    public List<MesAllotDetail> getMesAllotDetailList()
    {
        return mesAllotDetailList;
    }

    public void setMesAllotDetailList(List<MesAllotDetail> mesAllotDetailList)
    {
        this.mesAllotDetailList = mesAllotDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("status", getStatus())
            .append("allotNum", getAllotNum())
            .append("allotDate", getAllotDate())
            .append("allotUnitid", getAllotUnitid())
                .append("unitname", getUnitname())
            .append("allotRemark", getAllotRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("mesAllotDetailList", getMesAllotDetailList())
            .toString();
    }
}
